package programme;

public class CastingDemo {

	public static void main(String[] args) {
		
		// Implizieter Cast
		long l = 50;
		double d = 2;
		
		// expliziter Cast
		int i = 1000;
		byte b = (byte) i;
		System.out.println(b);
		
		double dou = 2.45;
		int in = (int) dou;
		System.out.println(in);
		
		
		// Komplexe Datentypen
		String s = "...";
		Object o = s;
		
		// Objekte vergleichen
		if(o instanceof String) {
			System.out.println("ja");
		}
		
		
		
	}
	
}
